package com.mrd.gtimp.business.entity;

import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;

/**
 * <p>
 * application name: sample
 * <p>
 * copyright: Copyright@2012 明睿达科技有限公司
 */
/**
 * 拖车业务要求反馈的拖车信息
 * @author winaya
 */
@Entity(name = "T_BIZ_CARMSG")
public class CarMsg implements Serializable {

	private static final long	serialVersionUID	= 1L;
	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Column(name = "ID")
	private String	          id;
	/**
	 * 司机姓名
	 */
	@Column(name = "NAME")
	private String	          name;
	/**
	 * 司机电话
	 */
	@Column(name = "TEL")
	private String	          tel;
	/**
	 * 车牌号
	 */
	@Column(name = "CAR_NO")
	private String	          carNo;
	/**
	 * 调度电话
	 */
	@Column(name = "CHARGE_TEL")
	private String	          charge_tel;
	/**
	 * 货柜信息
	 */
	@OneToMany(mappedBy = "carMsg")
	private List<Container>	  containers;
	/**
	 * 发箱时间
	 */
	@Column(name = "SEND_DATE")
	private Date	          sendDate;
	/**
	 * 重柜进闸时间
	 */
	@Column(name = "PASS_IN_TIME")
	private Date	          passInTime;
	/**
	 * 吉柜出闸时间
	 */
	@Column(name = "PASS_OUT_TIME")
	private Date	          passOutTime;

	/**
	 * 空车入闸
	 */
	@Column(name = "EMPTY_PASS_IN_TIME")
	private Date	          emptyPassInTime;
	/**
	 * 交接单号
	 */
	@Column(name = "REQ_NO")
	private String	          req_no;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getCarNo() {
		return carNo;
	}

	public void setCarNo(String carNo) {
		this.carNo = carNo;
	}

	public List<Container> getContainers() {
		return containers;
	}

	public void setContainers(List<Container> containers) {
		this.containers = containers;
	}

	public Date getSendDate() {
		return sendDate;
	}

	public void setSendDate(Date sendDate) {
		this.sendDate = sendDate;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCharge_tel() {
		return charge_tel;
	}

	public void setCharge_tel(String charge_tel) {
		this.charge_tel = charge_tel;
	}

	public Date getPassInTime() {
		return passInTime;
	}

	public void setPassInTime(Date passInTime) {
		this.passInTime = passInTime;
	}

	public Date getPassOutTime() {
		return passOutTime;
	}

	public void setPassOutTime(Date passOutTime) {
		this.passOutTime = passOutTime;
	}

	public Date getEmptyPassInTime() {
		return emptyPassInTime;
	}

	public void setEmptyPassInTime(Date emptyPassInTime) {
		this.emptyPassInTime = emptyPassInTime;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getReq_no() {
		return req_no;
	}

	public void setReq_no(String req_no) {
		this.req_no = req_no;
	}

}
